home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1 Issue 2
/
PDCD-1 - Issue 02.iso
/
_utilities
/
utilities
/
001
/
_serialmse
/
!SerialMse
/
!Help
next >
Wrap
Text File
|
1994-03-04
|
6KB
|
188 lines
++========================================++
|| Archimedes Serial Mouse Driver V2.10 ||
++========================================++
|| Stuart Tyrrell 04/03/1994 ||
++========================================++
************************************************************************
** This module is Public Domain if, and only if, it is distributed as **
** the FULL APPLICATION including this help file. **
************************************************************************
Introduction
============
This mouse driver is an extension of a project I completed a couple of
years ago. It allows you to connect and use a MS or PC compatible mouse with
your Archimedes via the serial port.
Use
===
Plug your mouse into the serial port, double click on !SerialMse on a
filer window, and play!.
Why doesn't it work?
====================
Do you :
a) Have an A300/A400/A3000 ?
- you _may_ need to make a short patch lead as follows, using a 9 pin
"D" type plug and socket :
9 pin skt (to Arc) 9 pin plug (to mouse)
+--- 1 1 ---+
| 2 ----------------------------- 2 |
| 3 ----------------------------- 3 |
+--- 4 4 ---+
| 5 ----------------------------- 5 |
+--- 6 6 |
7 ----------------------------- 7 ---+
8 8
9 9
I advise you to try your mouse without the lead first - many, especially
the more expensive, mice work without it.
(You may also need this lead for the newer machines, but probably not)
The link between pins 1,4 & 7 on the mouse end has been added because
some people have mice that use pin 4. Mine doesn't, and so I can't
be positive that this fix will work - it should!
b) Have an A3000?
- Do you have the serial upgrade fitted? If not, you will need to buy
one!
c) Have the "SerialUtils" module loaded (as supplied on the RISC OS 3
support disk)?
- For some reason (any ideas?), this version of the mouse driver is
incompatible with this module. RMKill SerialUtils, and don't load it
as part of your boot sequence anymore.
Points to note
==============
The MS standard only allows for two buttons. Therefore an MS mouse will
either only have 2 buttons, or the middle button will not work! To emulate
pressing the middle mouse button, press the left and right button on the
MS mouse at the same time. Of course, the lucky among you will have a
mouse which has a middle button which does just that (see your MS mouse
manual for details), and so the middle button will function as normal.
The three button "PC-Mouse" standard mice have a third button which
functions as normal.
Auto-detection of mice is now standard. The module will make an intelligent
guess as to which mouse you have fitted. Changing between the two mouse
standards may occur at any time, but it is better not to switch a switchable
mouse while the module is loaded - mouse movement may be undefined for a
short time while the module gets re-synchronised.
This version of the module also supports mouse acceleration, via
"*SerialMouseAcc". I was loathe to put this in, but a number of people
asked for it, and it was simple to implement it. If you would rather
use one of the "standard" mouse accelerators, then just leave the one
in the module turned off, and load your preffered mouse accelerator.
* Commands
==========
There are two * commands. The first, "*SerialMouseType", will give
you information as to which type of mouse the module thinks you have
connected, and allow you to force it to think otherwise if need be :
*SerialMouseType
-- Shows the current mouse type (PC or MS) and whether type detection is
automatic or forced.
*SerialMouseType AUTO
-- Use the module's auto-detection system to determine the type of mouse
connected.
*SerialMouseType MS
-- Force the module to think it has a MS type mouse attached.
*SerialMouseType PC
-- Force the module to think it has a PC-3 button type mouse attached.
The second * command, "*SerialMouseAcc" allows you to turn the mouse
acceleration on and off :
*SerialMouseAcc
-- Shows you whether the mouse acceleration is currently on or off.
*SerialMouseAcc ON
-- Turn on the mouse acceleration.
*SerialMouseAcc OFF
-- Turn off the mouse acceleration.
There is a line in !Run within the application which allows you to turn
the acceleration on or off when the module is first loaded.
Contact
=======
Stuart Tyrrell
6 Stamford Close
Market Deeping
Peterborough
Cambs.
PE6 8AF
(note this is a change from my previous address in St. Helens).
Email (until June 1994 at least!)
stl@sn2.ee.umist.ac.uk
Versions
========
V0.01 (03/11/92) - First version
V0.02 (21/02/94) - Tidied up serial setup routines
- Move 'x' then 'y' so movements outside bounding box still
allow some movement
- Found incompatability with SerialUtils
- Documentation
- Release
V1.00 (24/02/94) - Implemented PC mouse driver module.
- Revised docs
- Release
V1.00/1.01 (25/02/94)
- Split version numbers into MS/PC mouse modules
- PCMouse update now much smoother (V1.01)
- Documentation update
- Release
V1.01/1.01 (27/02/94)
- Forced MS-Mouse to work at 8N1 rather than 7N1
V1.02 (27/02/94)
- Autodetection of mice now implemented.
- Back to single version number as only one module!
V2.00 (28/02/94)
- Implemented *SerialMouseType
- Packaged into application
- Documentation
- Release
V2.10 (04/03/94)
- Mouse keys now fully emulated (-ve inkey numbers,
key up/down events etc). Now you can play Lemmings!
- Changes in MOUSE STEP (OS_Word 21,2) now work - module
uses configured mouse step on start-up, and traps
all MOUSE STEP changes after.
- Mouse acceleration implemented.
- Doc update to include pins 1,4 & 7 on mouse side.
- Release